import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";

import "@/styles/index.scss";

import "@/styles/common.scss";

import "@UI/styles/ui.scss";

import { NCard, NSpace, NButton } from "naive-ui";

import { createPinia } from "pinia";

if (process.env.NODE_ENV === "production") {
  const { mockXHR } = require("../mock");
  mockXHR();
}

createApp(App)
  .use(NCard, NSpace, NButton)
  .use(createPinia())
  .use(router)
  .mount("#app");
